<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.myfirefly.cn/tag/auth" prefix="auth"%>
<script type="text/javascript">

</script>
<div class="bjui-pageContent">
<form action="" id="spfTradeContract_form" data-toggle="validate" data-alertmsg="false">
	<input type="hidden" name="id" id="l_spfTradeContractId">
	<ul style='margin-top: 10px;margin-bottom: 10px;'>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeAddress" class="control-label x100">成交地址：</label>
       			<input type="text" name="tradeAddress" id="l_tradeAddress" value="" data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeArea" class="control-label x100">面积：</label>
       			<input type="text" name="tradeArea" id="l_tradeArea" value="" data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_customerName" class="control-label x100">客户姓名：</label>
       			<input type="text" name="customerName" id="l_customerName" value="" data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_contactWay" class="control-label x100">联系方式：</label>
       			<input type="text" name="contactWay" id="l_contactWay" value="" data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_identifyNum" class="control-label x100">证件号码：</label>
       			<input type="text" name="identifyNum" id="l_identifyNum" value="" data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
		<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeAmount" class="control-label x100">成交价：</label>
       			<input type="text" name="tradeAmount" id="l_tradeAmount" value="" data-rule="required;length[~20];number;jsvalide" size="20">
       		</div>
       	</li>
		<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeDate" class="control-label x100">成交日期：</label>
       			<input type="text" name="tradeDate" id="l_tradeDate" value="" readonly="readonly" data-toggle="datepicker" data-rule="required;length[~20];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeRegion" class="control-label x100">成交区域：</label>
       			<input readonly="readonly" type="text" data-toggle="lookup" data-title="选择成交区域" 
                    		data-url="spfTradeContract/toDepartmentLookUp.do?args_departmentName=tradeRegion" name="tradeRegion" data-rule="required;length[~50];jsvalide" class="doc_lookup" size="20">
                <a href="javascript:" onclick="clearLookUp(this);">清空</a>
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeShop" class="control-label x100">成交店面：</label>
       			<input readonly="readonly" type="text" data-toggle="lookup" data-title="选择成交店面" 
                    		data-url="spfTradeContract/toDepartmentLookUp.do?args_departmentName=tradeShop" name="tradeShop" data-rule="required;length[~50];jsvalide" class="doc_lookup" size="20">
                <a href="javascript:" onclick="clearLookUp(this);">清空</a>
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradePerson" class="control-label x100">成交人：</label>
       			<input id="l_tradePerson" readonly="readonly" type="text" data-toggle="lookup" data-title="选择成交人"  data-width="800" data-height="480"
	                 		data-url="spfTradeContract/staffLookup.do?args_staffName=tradePerson" name="tradePerson" data-rule="required;length[~50];jsvalide" class="doc_lookup" size="20">
	            <a href="javascript:" onclick="clearLookUp(this);">清空</a>
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_belongShopManager" class="control-label x100">所属店经理：</label>
       			<input id="l_belongShopManager" readonly="readonly" type="text" data-toggle="lookup" data-title="选择店经理"  data-width="800" data-height="480"
	                 		data-url="spfTradeContract/staffLookup.do?args_staffName=belongShopManager" name="belongShopManager" data-rule="required;length[~50];jsvalide" class="doc_lookup" size="20">
	            <a href="javascript:" onclick="clearLookUp(this);">清空</a>
       		</div>
       	</li>
		<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_receivableCommission" class="control-label x100">应收佣金：</label>
       			<input type="text" name="receivableCommission" id="l_receivableCommission" value="" data-rule="required;length[~10];number;jsvalide" size="20">
       		</div>
       	</li>
		<auth:has funcId="spfTradeContract" action="/spfTradeContract/receivedCommission">
		<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_receivedCommission" class="control-label x100">已收佣金：</label>
       			<input type="text" name="receivedCommission" id="l_receivedCommission" value="" data-rule="required;length[~10];number;jsvalide" size="20">
       		</div>
       	</li>
       	</auth:has>
       	<auth:has funcId="spfTradeContract" action="/spfTradeContract/receivedDate">
		<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_receivedDate" class="control-label x100">收佣日期：</label>
       			<input type="text" name="receivedDate" id="l_receivedDate" value="" readonly="readonly" data-toggle="datepicker" data-rule="length[~20];jsvalide" size="20">
       		</div>
       	</li>
       	</auth:has>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_tradeContractStatus" class="control-label x100">成交合同状态：</label>
       			<input type="text" name="tradeContractStatusShow" id="l_tradeContractStatus" value="" disabled data-rule="required;length[~50];jsvalide" size="20">
       		</div>
       	</li>
       	<li style='float:left;margin-bottom: 10px;'>
       		<div style="width:350px;">
       			<label for="l_remark" class="control-label x100">备注：</label>
       			<input type="text" name="remark" id="l_remark" value="" data-rule="length[~200];jsvalide" size="20">
       		</div>
       	</li>
    </ul>
</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn btn-red cancel" data-icon="remove">取消</button></li>
		<auth:has funcId="spfTradeContract" action="/spfTradeContract/editSave.do">
		<li><button type="button" class="btn btn-default save" data-icon="save">保存</button></li>
		</auth:has>
	</ul>
</div>